<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>

<body>
<div th:replace="common/top">

</div>
<div id="Content">
        <div id="BackLink">
            <a href="/catalog/viewmain">Return to Main Menu</a>
        </div>

        <table>
            <tr>
                <th>userId</th>
                <th>email</th>
                <th>firstname</th>
                <th>lastname</th>
                <th>status</th>
                <th>地址1</th>
                <th>地址2</th>
                <th>城市</th>
                <th>状态</th>
                <th>zip</th>
                <th>国家</th>
                <th>电话</th>
                <th>操作</th>
            </tr>

            <tr th:each="account:${accountList}">
                <th th:text="${account.username}"></th>
                <th th:text="${account.email}"></th>
                <th th:text="${account.firstName}"></th>
                <th th:text="${account.lastName}"></th>
                <th th:text="${account.status}"></th>
                <th th:text="${account.address1}"></th>
                <th th:text="${account.address2}"></th>
                <th th:text="${account.city}"></th>
                <th th:text="${account.status}"></th>
                <th th:text="${account.zip}"></th>
                <th th:text="${account.country}"></th>
                <th th:text="${account.phone}"></th>
                <td>
                    <a th:href="@{'/account/change?username='+${account.username}}" th:text="修改"></a>
                    <a th:href="@{'/account/delete?username='+${account.username}}" th:text="删除"></a>
<!--                    <a href="@{/account/change}" text="修改">修改</a>-->
<!--                    <button onclick="window.location.href = '/account/change'" class="btn btn-success btn-xs" data-toggle="modal" data-target="#changeChar">修改</button>-->
<!--                    <button onclick="window.location.href = '/account/viewAccount'" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#deleteChar">删除</button>-->
                </td>
            </tr>



        </table>


</div>
</div>
<div th:replace="common/bottom">

</div>

</body>

</html>